<?php

require_once( 'flexical/admin/view.php' );
require_once( 'flexical/admin/message.php' );

class Flexical_Admin_Error_View extends Flexical_Admin_View
{
	public function get_messages( $response )
	{
		$messages = array();

		switch ( get_class( $response ) )
		{
			case 'Flexical_Admin_Unknown_Request_Type_Response':
				$messages[] = new Flexical_Admin_Error_Message( "Unknown request type: " . $response->request_type );
		}

		return $messages;
	}

	public function render_details( $response )
	{
		;
	}
}

?>
